﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace EnterpriseFramework.DataAccess.Validation
{
    public class Rule
    {
        public Rule(string name, string description, bool isValid)
        {
            _Name = name;
            _Description = description;
            _IsNotValid = !isValid;
        }

        protected string _Name;
        protected string _Description;
        protected bool _IsNotValid = false;

        public string Name
        {
            get { return _Name; }
        }

        public string Description
        {
            get { return _Description; }
        }

        internal bool IsNotValid
        {
            get { return _IsNotValid; }
        }
    }
}
